using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using ESecretary.MyCommon;

namespace ESecretary.DataEntity
{
    [Serializable]
    public class MsgInfo
    {
        private ChatUserInfo user;
        private string message;
        private string remark;
        private ChatUserInfo[] meetingUsers;
        private MsgType type;

        public MsgInfo()
        {
            type = MsgType.TextData;
            user = new ChatUserInfo(GlobalVar.UserID, GlobalVar.UserName);
        }

        public ChatUserInfo User
        {
            get
            {
                return user;
            }
            set
            {
                user = value;
            }
        }

        public string Message
        {
            get
            {
                return message;
            }
            set
            {
                message = value;
            }
        }

        public ChatUserInfo[] MeetingUsers
        {
            get
            {
                return meetingUsers;
            }
            set
            {
                meetingUsers = value;
            }
        }

        public MsgType Type
        {
            get
            {
                return type;
            }
            set
            {
                type = value;
            }
        }

        public string Remark
        {
            get
            {
                return remark;
            }
            set
            {
                remark = value;
            }
        }

        public DateTime InputTime
        {
            get;
            set;
        }
    }
}
